<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        /* 
        1.子类可以继承父类的静态方法
        2.在子类的静态方法中调用父类的静态方法，用super和this去调用
        */
        class Person{
            static BaseUrl = "https://www.baidu.com"
            static sayName(){
                console.log("name");
            }
        }
        class Teacher extends Person{
            static show(){
                super.sayName()
             // this.sayName()
             console.log(super.BaseUrl);
            }
        }
        // Teacher.sayName()
        Teacher.show()
        console.log(Person.BaseUrl) 
    </script>
</body>
</html>